	$(function(){
        //按钮单击时执行
        $("#admin_user_view_do").click(function(){
			toastr.options = {
			  "closeButton": true,
			  "debug": false,
			  "progressBar": true,
			  "positionClass": "toast-bottom-full-width",
			  "onclick": null,
			  "showDuration": "400",
			  "hideDuration": "1000",
			  "timeOut": "7000",
			  "extendedTimeOut": "1000",
			  "showEasing": "swing",
			  "hideEasing": "linear",
			  "showMethod": "fadeIn",
			  "hideMethod": "fadeOut"
			}

			var user_id = $('#user_id').val();
			var name = $('#name').val();
			var sex = $("input[name='sex']:checked").val();
			var birthday = $('#birthday').val();
			var address = $('#address').val();
			var telphone = $('#telphone').val();
			var tel = $('#tel').val();
			var qq = $('#qq').val();
			var wechat = $('#wechat').val();
			var alipay = $('#alipay').val();
			var email = $('#email').val();
			var questions1 = $('#questions1').val();
			var questions2 = $('#questions2').val();
			var questions3 = $('#questions3').val();
			var answer1 = $('#answer1').val();
			var answer2 = $('#answer2').val();
			var answer3 = $('#answer3').val();
            //Ajax调用处理
			var admin_user_view_do = $.ajax({
               type: "POST",
               url: "index.php?m=user&c=user_admin&a=admin_user_view_do",
               data: "user_id="+user_id+"&name="+name+"&sex="+sex+"&birthday="+birthday+"&address="+address+"&telphone="+telphone+"&tel="+tel+"&qq="+qq+"&wechat="+wechat+"&alipay="+alipay+"&email="+email+"&questions1="+questions1+"&questions2="+questions2+"&questions3="+questions3+"&answer1="+answer1+"&answer2="+answer2+"&answer3="+answer3,
               async: false
            }).responseText;
			if (admin_user_view_do == "1"){
				toastr.info("用户数据更新失败！");
			} else if (admin_user_view_do == "2") {
				toastr.success("用户数据更新成功！");
			} else {
				toastr.error("请勿提交非法数据！");
			}
         });		 
    });